package reduce.fz.com.reduce.fragment;


import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.ListView;

import com.android.volley.Response;
import com.android.volley.VolleyError;

import java.util.List;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.adapter.TeamDetailDynamicAdapter;
import reduce.fz.com.reduce.bean.page.Pagination;
import reduce.fz.com.reduce.bean.result.UserWitness;
import reduce.fz.com.reduce.fragment.base.BaseFragment;
import reduce.fz.com.reduce.util.ReduceLog;

/**
 * A simple {@link Fragment} subclass.
 */
public class TeamDetailDynamicFragment extends BaseFragment  {
    private ListView mDynamicList;
    private List<UserWitness> userWitnesses;
    private Pagination pagination;
    private String requestAddress;

    public static void create() {
        Bundle bundle = new Bundle();
    }


    public TeamDetailDynamicFragment() {
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view= inflater.inflate(R.layout.fragment_team_detail_dynamic, container, false);
        initWidget(view);
        return view;
    }

    public void initWidget(View view) {
        mDynamicList = (ListView) view.findViewById(R.id.dynamic_list);
        mDynamicList.setAdapter(new TeamDetailDynamicAdapter());
    }

    public String requeNextPage() {
        pagination.nextPage();
        return requestAddress + "?pageNo=" + pagination.getPageNo() + "&pageSize=" + pagination.getPageSize();

    }

    public List<UserWitness> loadData()
    {
         return null;
    }



}
